<script setup>
import String2List from '../../../String2List.vue';
import { reactive } from 'vue';
const props = defineProps({
    probeConfig: {
        type: Object
    },
    containerIndex: {
        type: Number,
    },
    probeType: {
        type: String
    },
    containerType: {
        type: String
    }
})
const rules = reactive({
    command: [
        {required: true, message: '请输入健康检查命令', trigger: 'blur'}
    ]
})
</script>

<template>
    <el-form-item label="检查命令" :rules="rules.command" :prop="('spec.template.spec.containers.'+props.containerIndex+'.'+props.probeType+'.exec.command')" required>
        <String2List v-model:data="props.probeConfig.exec.command" placeholder="请输入健康检查命令"></String2List>
    </el-form-item>
</template>

<style scoped>

</style>
